<?php 
/****
若	水
博	客: http://www.wangzhaobo.top
****/

namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller{
	public function _initialize(){
		if(!IS_AJAX){	
		echo <<<EOL
		<script>
		var _hmt = _hmt || [];
		(function() {
		  var hm = document.createElement("script");
		  hm.src = "https://hm.baidu.com/hm.js?8a69fa8232fbdab52c989ab32d216f0a";
		  var s = document.getElementsByTagName("script")[0]; 
		  s.parentNode.insertBefore(hm, s);
		})();
		</script>
EOL;
		}
		$cat = M('Cat')->select();
    	$this->assign('cat',$cat);
	}
}

?>